package com.ymttest.database.sqlwapper.godmch;

import java.util.List;
import java.util.Map;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.godmch.mch_config;
import com.ymttest.database.model.godmch.mch_configExample;
import com.ymttest.utils.EnvSetup;
/************************************************************************************
 * @File name : mch_configWapperWapper.java
 * @Author : 吴文
 * @Date : 
 * @Copyright : 洋码头
 *godmach
 ************************************************************************************/
public class mch_configWapper {
	SqlManager manage;
	public mch_configWapper() {
		manage = new SqlManager("mysqlgodmchdb" + EnvSetup.getEnv());
		 
	}
	
	public  List<mch_config> selectByExample(mch_configExample example) throws InterruptedException {
		List<mch_config> list = manage.getSelectResults("com.ymttest.database.mapping.godmch.mch_configMapper.selectByExample",example);
		manage.commit();
		return list;
	}
	
	public  mch_config selectByPrimaryKey(Integer agentType) throws InterruptedException {	
		mch_config model=new mch_config();
		List<mch_config> lst = manage.getSelectResults("com.ymttest.database.mapping.godmch.mch_configMapper.selectByPrimaryKey",agentType);
		if(lst.size()>0)
			 model=lst.get(0);
		manage.commit();
		return model;
	}
	
	public static void main(String args[]) {
	  
	}
}
